package com.techstar.ats.type;

import java.util.Set;

import com.techstar.ats.status.StatusEnumerated;

public enum TrainMode2 implements StatusEnumerated {
	SLEEP(0x00000001, "休眠"),
	WAKEUP(0x00000002, "唤醒"),
	MAINLINE(0x00000003, "正线运营"),
	DEPOT(0x00000004, "下线或场段运行工况"),
	STANDBY(0x00000005, "待命"),
	WASH(0x00000006, "洗车"),
	CLEAN(0x00000007, "清扫"),
	PATROL(0x00000008, "巡道"),
	RAINSNOW(0x00000009, "雨雪模式"),
	;

	private final int value;
	private final String literal;

	TrainMode2(int value, String literal) {
		this.value = value;
		this.literal = literal;
	}

	public int value() {
		return this.value;
	}

	public String literal() {
		return this.literal;
	}

	public static Set<TrainMode2> valueOf(int mask) {
		return StatusEnumerated.valueOf(TrainMode2.class, mask);
	}
}
